import React from 'react';

import FlatButton from 'material-ui/FlatButton';

export const Test = (props) => (
  <div>
    <FlatButton label="Default" onTouchTap={props.query} />
    <FlatButton label="Primary" primary={true} onTouchTap={props.queryandchange} />
    <FlatButton label="Secondary" secondary={true} />
    <FlatButton label={props.test} disabled={true} />
  </div>
);

Test.propTypes = {
  test: React.PropTypes.string.isRequired,
  query: React.PropTypes.func.isRequired,
  queryandchange: React.PropTypes.func.isRequired
};

export default Test;
